enum in migration laravel

32

$table->enum('priority', ['normal', 'medium', 'high'])->default('normal');
DB::statement("ALTER TABLE users CHANGE COLUMN permissions permissions ENUM('admin', 'user', 'candidate') NOT NULL DEFAULT 'user'");

Comments

Submit
0 Comments